home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / network / ka9q / ka9q_src.arc / AXMBX.H < prev    next >
C/C++ Source or Header  |  1988-07-28  |  634b  |  18 lines

  1. /* cat > ./ax_mbx.h << '\Rogue\Monster\' */
  2. /* Defines for the ax.25 mailbox facility */
  3.  
  4. #define MBXLINE        128        /* max length of line */
  5. struct mbx {
  6.     int state ;                /* mailbox state */
  7. #define MBX_CMD        1        /* in command mode */
  8. #define MBX_SUBJ    2        /* waiting for a subject line */
  9. #define MBX_DATA    3        /* collecting the message */
  10.     char name[10] ;            /* Name of remote station */
  11.     struct ax25_cb    *ax25_cb ;    /* link control block */
  12.     char *to ;                /* Addressee */
  13.     FILE *tfile ;            /* Temporary file for message */
  14.     char line[MBXLINE+1] ;    /* Room for null at end */
  15.     char *lp ;                /* line pointer */
  16. } ;
  17. #define     NULLMBX        (struct mbx *)0
  18.